package com.example.it.review.acvitity.control;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.RatingBar;

import com.example.it.review.R;

public class RatingBarActivity extends AppCompatActivity {

    private RatingBar ratingBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_rating_bar);
        ratingBar = (RatingBar) this.findViewById(R.id.ratingbar);
//        init();
    }

    void init() {
        //设置仅仅用用来指示，等级,默认值为false,如果为ture 那么用户将无法更改
        ratingBar.setIsIndicator(true);
    }
}
